#pragma once

#ifdef _WIN32
#include <Windows.h>
#endif

#include <gl/GL.h>

struct Point
{
	float x, y;
};

class Line
{
protected:
	float x1, y1;
	float x2, y2;
	float m;

public:
	Line();
	Line(float x1, float y1, float x2, float y2);

	float getX1() const;
	float getY1() const;
	float getX2() const;
	float getY2() const;

	void setX1(float x1);
	void setY1(float y1);
	void setX2(float x2);
	void setY2(float y2);

	Point intersectsWall(const Line &wall);
	void draw();
};